package com.clwl.supervise.superviseapp.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "SYS_DICT_DATA")
public class SysDictData implements Serializable {


//    @TableField(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @TableField(value = "DICT_SORT")
    private Long dictSort;

    @TableField(value = "DICT_LABEL")
    private String dictLabel;

    @TableField(value = "DICT_VALUE")
    private String dictValue;

    @TableField(value = "DICT_TYPE")
    private String dictType;

    @TableField(value = "CSS_CLASS")
    private String cssClass;

    @TableField(value = "DEL_FLAG")
    private String delFlag;

    @TableField(value = "IS_SYS")
    private String isSys;

    @TableField(value = "STATUS")
    private String status;

    @TableField(value = "CSS_STYLE")
    private String cssStyle;

    @TableField(value = "LIST_CLASS")
    private String listClass;

    @TableField(value = "IS_DEFAULT")
    private String isDefault;

    @TableField(value = "CREATE_BY")
    private String createBy;

    @TableField(value = "CREATE_TIME")
    private Date createTime;

    @TableField(value = "UPDATE_BY")
    private String updateBy;

    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    @TableField(value = "REMARK")
    private String remark;

    /**
     * 0-单选框 1-复选框
     */
    @TableField(exist = false)
    private String checkboxType;

    /**
     * 0-未选中 1-选中
     */
    @TableField(exist = false)
    private String checked;

    private static final long serialVersionUID = 1L;
}
